package com.jk.lzy.dao;

import com.jk.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 梁展艺
 * @Description: 选座 购票 持久层
 * @Date: 2021/5/21 10:25
 * @param null
 * @Return:
 **/
@Repository
@Mapper
public interface MovieInfoDao {

    CinemaBean chooseByCinemaId(Integer cinemaId);

    MovieBean movieDetailsBy(Integer movieId);

    List<CinemaBean> cinemaByCity(CinemaBean cinema);

    MovieBean movieByMovieId(Integer movieId);

    List<ProgramBean> moviePlan(ProgramBean program);

    ProgramBean programByprogramId(Integer programId);

    MovieHallBean programByprogram(Integer programId);

    List<SeatBean> findSeatByCinemaId(@Param("hallId") Integer hallId,@Param("cinemaId") Integer cinemaId);

    OrderBean findUserBuyOrder(Integer programId);
}
